package com.lagou.boot;

import com.lagou.client.RPCConsumer;
import com.lagou.service.IUserService;

public class ConsumerBoot {
    public static void main(String[] args) throws InterruptedException {
        RPCConsumer rpcConsumer = new RPCConsumer();
        IUserService proxy = (IUserService) rpcConsumer.createProxy(IUserService.class);

        while (true){
            Thread.sleep(2000);
            String s = proxy.sayHello("Hi provider, are you ok ? ");
            System.out.println(s);
        }

    }
}
